﻿@model Hotel.Web.Models.Assignment
@{
    ViewBag.Title = Hotel.Web.Views.Assignment.AssignmentResources.NewTask;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>@Hotel.Web.Views.Assignment.AssignmentResources.CreatingNewTask</h2>
@Html.ValidationSummary(true, Hotel.Web.Views.Assignment.AssignmentResources.ErrorSummary)
@using (Html.BeginForm())
{
    
    <fieldset>
        <legend>@Hotel.Web.Views.Assignment.AssignmentResources.NewTask</legend>
        <br />
        <div class="fl">
            @Html.LabelFor(model => model.RoomNumber)
            @Html.EditorFor(model => model.RoomNumber)
            @Html.ValidationMessageFor(model => model.RoomNumber)<br />
            @Html.LabelFor(model => model.CurrentService.Name)<br />
            @Html.EditorFor(model => model.CurrentService.Name)
            @Html.ValidationMessageFor(model => model.CurrentService.Name)<br />
            @Html.LabelFor(model => model.CurrentService.Price)<br />
            @Html.EditorFor(model => model.CurrentService.Price)
            @Html.ValidationMessageFor(model => model.CurrentService.Price)<br />
            @Html.LabelFor(model => model.Description)
            @Html.TextAreaFor(model => model.Description, new { style = "width: 200px" })
            @Html.ValidationMessageFor(model => model.Description)<br />
            @Html.LabelFor(model => model.WorkerType)<br />
            @Html.DropDownList("WorkerType", new SelectList(Enum.GetValues(typeof(Hotel.Web.Models.Assignment.CurrentWorkerType))))
            <br />
        </div>
        <br />
        <br />
        <p>
            <input type="submit" value="@Hotel.Web.Views.Assignment.AssignmentResources.Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink(Hotel.Web.Views.Assignment.AssignmentResources.BackToList, "Index")
</div>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
